import random

def find_min_number(target):
    """找到最小的数的序号"""
    idx = 0
    min = target[idx]
    for i in range(len(target)):
        if target[i] < min:
            idx = i
            min = target[i]
    return idx

# 产生10个数
numbers = []
for i in range(10):
    numbers.append(random.randrange(0, 100))
print(numbers)

# 1. find the min number
idx = find_min_number(numbers)
print(f"The min number is target[{idx}]={numbers[idx]}")

# 2. remove the min number
del numbers[idx]
print(numbers)

# 3. find the min number again
idx = find_min_number(numbers)
print(f"The 2nd min number is target[{idx}]={numbers[idx]}")
